package com.googlecode.yatspec.junit;

import java.lang.reflect.Type;

public class OnlyStringArguments implements ArgumentCoercer {
    @Override
    public Object get(Type type, String value) {
        if(!type.equals(String.class)) {
            throw new IllegalArgumentException("Only know how to deal with string arguments");
        }
        return value;
    }
}
